﻿using System;
using System.Windows.Forms;

namespace AlarmClock
{
    public partial class ClockControl : UserControl
    {
        public ClockControl()
        {
            InitializeComponent();
        }

        // update Label at every tick

        private void clockTimer_Tick(object sender, EventArgs e)
        {
            displayLabel.Text = DateTime.Now.ToLongTimeString();
        }
        // end method clockTimer_Tick
    }
}
